<!DOCTYPE html> 
<html>
    <head>
        <meta charset="utf-8">
        <title>Analytics | WiCity.vn</title>
        <meta name="viewport" content="width=1024">

        <meta name="robots" content="all,follow">
        <meta name="googlebot" content="snippet,archive">
        <meta name="google-site-verification" content="">
        <link rel="icon" href="<?php echo $baseurl ?>public/theme/analytics/images/favicon.png" type="image/x-icon">
        <link rel="stylesheet" href="<?php echo $baseurl ?>public/assets/css/style.css" type="text/css">
        <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,700,600,300&subset=latin,latin-ext" type="text/css">

        <script src="<?php echo $baseurl ?>public/assets/js/jquery-1.10.2.min.js" type="text/javascript" ></script>
        <script src="<?php echo $baseurl ?>public/theme/analytics/minify/jquery.alerts.js" type="text/javascript" ></script>
        <link href="<?php echo $baseurl ?>public/theme/analytics/minify/jquery.alerts.css" type="text/css" rel="stylesheet" /> 

        <script type="text/javascript">
            var $ = jQuery.noConflict();
            var baseUrl = '<?php echo $baseurl ?>';
            showPreload();
            $(function ()
            {
                $(document).keydown(function(event){
                    if(event.which=="17")
                        cntrlIsPressed = true;
                });
                
                $(document).keyup(function(){
                    cntrlIsPressed = false;
                });
                
                var cntrlIsPressed = false;

                $("a").on('click', function () {
                    if(cntrlIsPressed)
                    {
                        return true;   
                    }else{
                        showPreload();
                        return true;
                    }
                });//window.location = $(this).attr('href');return false;});
                $("button").on('click', function () {
                    showPreload();
                });
            });
            function showPreload() {
                $(".orverlay").css('display', 'block');
            }
            function hidePreload() {
                $(".orverlay").css('display', 'none');
            }
        </script>
        <link href="<?php echo $baseurl?>public/theme/analytics/custom.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <?php $this->load->view('temp/block/left') ?>
        <div id="mainPanel">
            <?php $this->load->view("temp/" . ($controller ? $controller : 'index') . "/" . ($action ? $action : 'index'), ''); ?>
        </div>

        <div class="orverlay">
            <div class="box_orverlay">
                <img src="<?php echo $baseurl ?>public/theme/analytics/images/loading.GIF" /> Đang tải dữ liệu...
            </div>
        </div>
        <style>
            .orverlay{
                float: left;width: 100%;background: url('<?php echo $baseurl ?>public/theme/analytics/images/black_opacity.png') repeat; height: 100%;position: fixed;top: 0;z-index: 9999999;overflow: auto;box-sizing: border-box;display: block;padding-top:15%
            }
            .orverlay .box_orverlay{
                margin: 60px auto;width: 160px;background: #FFF;font-size: 15px;color: #666;padding: 10px;box-shadow: 0px 0px 15px #777;box-sizing: content-box;
            }
            .orverlay .box_orverlay h2{
                float: left;width: 100%;margin-top: -3px;background: orange;color: #fff;font-weight: normal;
            }
            .orverlay .box_orverlay p{
                padding: 5px 10px
            }
        </style>
        <script>
            setTimeout(function(){
                hidePreload();
            }, 1000);
            $(document).keyup(function (e)
            {
                if (e.keyCode == 27) {
                    closeIframe();
                }
            });

        </script>
        <script src="<?php echo $baseurl ?>public/assets/js/custom.js" type="text/javascript" ></script>
    </body>
</html>